import { Desensitization,thousands,bigNumberTransform } from '@/util/utils'
import { MarketType, MarketStatus, Sex, UserAuthStatus, VisibleStatus, CollectionStatus } from '@/common/config/enums'

export const desensitized = (value, s, e) => {
  if (!value) return ''
  return Desensitization(value, s, e)
}

export const marketType = (type) => {
  return MarketType[type]
}

export const marketStatus = (status) => {
  return MarketStatus[status]
}

export const sex = (v) => {
  return Sex[v]
}

export const userAuthStatus = (v) => {
  return UserAuthStatus[v]
}

export const visible = (v) => {
  return VisibleStatus[v]
}

export const collectionStatus = (v) => {
  return CollectionStatus[v]
}
